| Table 16.1 Watch Types. |
| Option | Description |
| Expression | This can be any valid Visual Basic expression. It can be a variable name, or you can test to see whether a variable is equal to a certain value. |
| Context | You can tell Visual Basic which variable to watcha local, form/module-level, or global variable. |
| Watch Type | You can determine when to enter break mode by selecting the Break When Value Is True option. For example, enter the following in the Expression text box: |
| gintValue = 10 |
| Once the value in the variable gintValue becomes 10, Visual Basic automatically puts you in break mode. You can then see the line where this change occurred. |
| You can tell Visual Basic to stop execution anytime the value in a variable changes by selecting the Break When Value Changes option. This is particularly useful for testing which routines change a global or module-level variable. |